package com.lzy.product.service;

import com.lzy.product.dtos.agent.AgentProtocolProductDto;

import java.util.List;

/**
 * Created by WIN7 on 2018/04/14.
 */
public interface AgentProtocolProductService extends BaseService<AgentProtocolProductDto> {

    /**
     * 获取协议关联产品信息
     * @param protocolId
     * @return
     */
    List<AgentProtocolProductDto> selectByProtocolId(Long protocolId);

    List<AgentProtocolProductDto> selectByProductId(Long productId);

    /**
     * 删除协议关联产品
     * @param protocolId
     * @return
     */
    Boolean deleteByProtocolId (Long protocolId);

}
